From d25f5a7f566cdda68471662f55b59af1ec146e9a Mon Sep 17 00:00:00 2001 From: "iap10@freefall.cl.cam.ac.uk" Date: Mon, 18 Apr 2005 21:53:33 +0000 Subject: [PATCH] bitkeeper revision 1.1159.258.103 (42642c5djs1dzMOSs-vIJLlGCQyrMQ) Allow xc_domain_info_t to be optional in xc_domain_getfullinfo From: Kip Macy Signed-off-by: ian@xensource.com --- tools/libxc/xc_domain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/libxc/xc_domain.c b/tools/libxc/xc_domain.c index 67168910e9..b2c468bc90 100644 --- a/tools/libxc/xc_domain.c +++ b/tools/libxc/xc_domain.c @@ -132,7 +132,8 @@ int xc_domain_getfullinfo(int xc_handle, rc = do_dom0_op(xc_handle, &op); - memcpy(info, &op.u.getdomaininfo, sizeof(*info)); + if ( info ) + memcpy(info, &op.u.getdomaininfo, sizeof(*info)); if ( ((u16)op.u.getdomaininfo.domain != domid) && rc > 0 ) return -ESRCH; -- 2.30.2